/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gskorupa.univermon.config;

import com.gskorupa.univermon.storage.InMemory;
import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author greg
 */
public class Configuration {
    
    private static int MEMORY_STORAGE = 0;
    
    private static volatile Configuration instance = new Configuration();
    
    private int maxUsers=100; // user limits
    private int maxDevices=2; // user limits
    private int maxEntries=100;
    private int storageType=MEMORY_STORAGE;
    private int reportLimit=50;

    public static Configuration getInstance() {
        return instance;
    }

    /**
     * @return the maxUsers
     */
    public int getMaxUsers() {
        return maxUsers;
    }

    /**
     * @param maxUsers the maxUsers to set
     */
    public void setMaxUsers(int maxUsers) {
        this.maxUsers = maxUsers;
    }

    /**
     * @return the maxDevices
     */
    public int getMaxDevices() {
        return maxDevices;
    }

    /**
     * @param maxDevices the maxDevices to set
     */
    public void setMaxDevices(int maxDevices) {
        this.maxDevices = maxDevices;
    }

    /**
     * @return the maxEntries
     */
    public int getMaxEntries() {
        return maxEntries;
    }

    /**
     * @param maxEntries the maxEntries to set
     */
    public void setMaxEntries(int maxEntries) {
        this.maxEntries = maxEntries;
    }

    /**
     * @return the storageType
     */
    public int getStorageType() {
        return storageType;
    }

    /**
     * @param storageType the storageType to set
     */
    public void setStorageType(int storageType) {
        this.storageType = storageType;
    }

    /**
     * @return the reportLimit
     */
    public int getReportLimit() {
        return reportLimit;
    }

    /**
     * @param reportLimit the reportLimit to set
     */
    public void setReportLimit(int reportLimit) {
        this.reportLimit = reportLimit;
    }
}
